<!--Copyright (C) Kherty.  All rights reserved.-->
<oui:GroupPanel
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    x:Class="OpenLS.Spreadsheet.UI.CollaborativeModulesTabContent"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:oui="http://schemas.Kherty.com/office/2007"
    xmlns:ssui="clr-namespace:OpenLS.Spreadsheet.UI"
    xmlns:chart="http://schemas.Kherty.com/office/2007/chart"
    xmlns:Internals="clr-namespace:OpenLS.Spreadsheet.UI.Internals"
    xmlns:Spreadsheet="clr-namespace:OpenLS.Spreadsheet;assembly=OpenLS.Spreadsheet"
    xmlns:media="clr-namespace:OpenLS.Media;assembly=OpenLS.Media"
    xmlns:Resources="clr-namespace:OpenLS.Spreadsheet.UI.Internals.Resources">
    <oui:GroupPanel.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>

                <ssui:ChartTemplateResources/>
            </ResourceDictionary.MergedDictionaries>
            <Style BasedOn="{StaticResource {x:Type MenuItem}}" TargetType="{x:Type MenuItem}"  x:Key="chartMenuItemStyle">
                <Setter Property="MenuItem.Command" Value="{x:Static ssui:SpreadsheetCommands.InsertChart}"/>
                <Setter Property="CommandParameter" Value="{Binding}"/>
                <Setter Property="Icon" Value="{x:Null}"/>
                <Style.Resources>
                    <Style TargetType="{x:Type Image}">
                        <Setter Property="Width" Value="48"/>
                        <Setter Property="Height" Value="48"/>
                    </Style>
                </Style.Resources>
            </Style>

        </ResourceDictionary>
            
        </oui:GroupPanel.Resources>

    <oui:Group Header="{x:Static Resources:UIStringTable.LoginManager}">
        <Menu>
            <MenuItem Command="{x:Static ssui:SpreadsheetCommands.Login}" CommandParameter="{x:Static Spreadsheet:TableStyles.Medium9}" Header="{x:Static Resources:UIStringTable.Login}" />
        </Menu>
        <MenuItem Command="{x:Static ssui:SpreadsheetCommands.Register}" CommandParameter="{x:Static Spreadsheet:TableStyles.Medium9}" Header="{x:Static Resources:UIStringTable.Register}" oui:RibbonElement.ControlState="Large"/>
        <MenuItem Command="{x:Static ssui:SpreadsheetCommands.Logout}" CommandParameter="{x:Static Spreadsheet:TableStyles.Medium9}" Header="{x:Static Resources:UIStringTable.Logout}" oui:RibbonElement.ControlState="Large"/>
    </oui:Group>
    <oui:Group Header="{x:Static Resources:UIStringTable.RegisteredModules}">
        <Menu>
            <MenuItem Command="{x:Static ssui:SpreadsheetCommands.MarketData}" CommandParameter="{x:Static Spreadsheet:TableStyles.Medium9}" Header="{x:Static Resources:UIStringTable.MarketData}" />
        </Menu>
    </oui:Group>


    <oui:Group Header="{x:Static Resources:UIStringTable.TableManager}">
        <Menu>
            <MenuItem Command="{x:Static ssui:SpreadsheetCommands.FormatAsTable}" CommandParameter="{x:Static Spreadsheet:TableStyles.Medium9}" Header="{x:Static Resources:UIStringTable.DefineBigDataTable}" />
        </Menu>
        <MenuItem Command="{x:Static ssui:SpreadsheetCommands.BigDataTableManager}" CommandParameter="{x:Static Spreadsheet:TableStyles.Medium9}" Header="{x:Static Resources:UIStringTable.BigDataTableManager}" oui:RibbonElement.ControlState="Large"/>
    </oui:Group>

</oui:GroupPanel>
